
/*
 * Copyright 2008 Friendster Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace Friendster.Service
{
    /// <summary>
    /// Represents the location data class of user.
    /// </summary>
    public class LocaTion
    {
        private Hashtable locationState = new Hashtable();
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="locationState"></param>
        internal LocaTion(Hashtable locationState)
        {
            this.locationState = (Hashtable)locationState;
        }

        /// <summary>
        /// Returns the state of user's location.
        /// </summary>
        public string State
        {
            get
            {
                return (string)this.locationState["state"];
            }
        }
        /// <summary>
        /// Returns the city of user's location.
        /// </summary>
        public string City
        {
            get
            {
                return (string)this.locationState["city"];
            }
        }
        /// <summary>
        /// Returns the country of user's location.
        /// </summary>
        public string Country
        {
            get
            {
                return (string)this.locationState["country"];
            }
        }
        /// <summary>
        /// Returns the zip code of user's location.
        /// </summary>
        public string Zip
        {
            get
            {
                return (string)this.locationState["zip"];
            }
        }
    }
}
